package com.googlecode.restitory.gae.hook;

import com.googlecode.restitory.gae.Request;
import com.googlecode.restitory.gae.RequestService;
import com.googlecode.restitory.gae.Response;

public class DefaultRequestService implements RequestService {

	public static Chain createChain() {
		Chain chain = new Chain();
		chain.addHook(new RhinoHook());
		chain.addHook(new QueueHook());
		chain.addHook(new QueryHook());
		chain.addHook(new ControlHook());
		chain.addHook(new DocHook());
		return chain;
	}

	@Override
	public Response execute(Request req) {
		return createChain().execute(req);
	}

}
